/*
 * =====================================================================================
 *
 *       Filename:  LinearList.c
 *
 *    Description:  
 *
 *        Version:  1.0
 *        Created:  11/05/2012 02:33:15 PM
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  Kjeldahl (), 
 *   Organization:  
 *
 * =====================================================================================
 */
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#define  elmType int
//
//:Data
//
typedef struct{
	elmType *data;
	int size;
	int used;
}LinearList;
//
//:Operation
//
LinearList * initLinearList(elmType *p,int size);
int destroyLinearList(LinearList *L);
int emptyLinearList(LinearList *L);
int addElement(LinearList *L,int index,elmType value);
elmType delelement(LinearList *L,int index);
void listAll(LinearList *L);
elmType locateList(LinearList *L,int index);
int insertLinearList(LinearList *L,int index,elmType value);
int searchList(LinearList *L,elmType value);
int incrementList(LinearList *L,int incresize);
int decrementList(LinearList *L,int decresize);

